<div id="content-outer">
<div id="content">


<div id="page-heading"><h1>Select Course</h1></div>





<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tbody><tr>
		<th rowspan="3" class="sized"><img src="<?php echo base_url(); ?>images/shared/side_shadowleft.jpg" width="20" height="300" alt=""></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="<?php echo base_url(); ?>images/shared/side_shadowright.jpg" width="20" height="300" alt=""></th>
</tr>
<tr>
    <td id="tbl-border-left"></td>
    <td>
    <!--  start content-table-inner -->
    <div id="content-table-inner">

    <table border="0" width="100%" cellpadding="0" cellspacing="0">
    <tbody><tr valign="top">
    <td>

    <?php echo form_open('SelectCourse/AddUpdateCourse') ;?>
        <!-- start id-form -->
        <table border="0" cellpadding="0" cellspacing="2">
        <col width="10%">
        <col width="20%">
        <col width="40%">
        <col width="30%">
        <tbody>
            <?php if(count($allCourses) > 0): ?>
                <?php foreach($allCourses as $course): ?>
                <tr>
                    <td align="center"><?php echo form_checkbox('course'.$course->ID, $course->ID, FALSE);?></td>
                    <td><?php echo $course->CODE.' - '.$course->NAME?></td>
                    <td><img src="<?php echo base_url(); ?>images/Tulips.jpg"  width="300" height="200"></td>
                    <td align="center"><?php echo $course->DETAIL; ?></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <?php endforeach;?>
            <?php else: ?>
                <tr>
                    <td colspan="4" align="center"><b>No Course Availabel Now</b></td>
                </tr>
                <?php for($i=1;$i<=18;$i++): ?>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <?php endfor; ?>
                
            <?php endif;?>
            
            <?php if(count($allCourses) > 0): ?>
                <tr>
                    <td colspan="4" align="center">

                        <div  align="center">
                            <?php echo form_submit('submit', 'Submit','class="form-submit"'); ?>
                            <?php echo form_button('reset', 'Reset', 'class="form-reset"'); ?>
                        </div>
                    </td>
                </tr>
            <?php endif; ?>
        </tbody>
        </table>
        <!-- end id-form  -->
        <?php echo form_close();?>

    </td>
    <td>



    </td>
    </tr>
    <tr>
    <td><img src="images/shared/blank.gif" width="695" height="1" alt="blank"></td>
    <td></td>
    </tr>
    </tbody></table>

    <div class="clear"></div>


    </div>
    <!--  end content-table-inner  -->
    </td>
    <td id="tbl-border-right"></td>
</tr>
<tr>
        <th class="sized bottomleft"></th>
        <td id="tbl-border-bottom">&nbsp;</td>
        <th class="sized bottomright"></th>
</tr>
</tbody></table>

<div class="clear">&nbsp;</div>

</div>
</div>